<?php    
require_once 'lib/BaseModel.php';

class ModLog extends Tamtay_Table_Abstract
{
	protected $_name = 'mytt_mod_log';
	protected $_primary = 'id';
	
	public function add($module, $uid, $action, $ref, $note)
	{
		$data = array(
            'module'    => $module,  
			'uid'		=> $uid,
			'action'	=> $action,
			'ref'		=> $ref,
			'timestamp'	=> time(),
            'note'        => $note,
		);
		$this->insert($data);
	}
}

